<!doctype html>
<title>Using a class and id together</title>

<style>

.animal
{
	font-family: Monaco, "Courier New", monospace;
	font-size: 30px;
}

#cat
{
	font-style: italic;
}

#tiger
{
	font-weight: bold;
}

#hedgehog
{
	text-decoration: underline;
}

</style>

<div class="animal" id="cat">Cat</div>
<div class="animal" id="tiger">Tiger</div>
<div class="animal" id="hedgehog">Hedgehog</div>